using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

using Multiplicity.Runtime.Serialization.Binary;

namespace Multiplicity.Reflection {
    class BlobHeap : SizePrefixedHeapBase<Blob> {

        internal const string Name = "#Blob";

        public BlobHeap(Module module, StorageHeapHeader head, long storageOffset)
            : base(module, head, storageOffset) {
        }
        protected override Blob ReadBlobItem(uint index, uint size) {
            return new Blob(Module, new BufferSegment(Buffer, index, size));
        }

    }
}
